Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove Plausible Analytics metions from CE #4121

Merged
merged 3 commits into from
May 23, 2024

Conversation

ruslandoga
Copy link
Contributor

@ruslandoga ruslandoga commented May 23, 2024

Changes

This PR removes some of Plausible Analytics mentions from CE builds. There are still places where this mention is kept:

  • <div style="font-size: 14px; padding-bottom: 14px;">Stats powered by <a target="_blank" style="color: #4F46E5; text-decoration: underline;" href="https://plausible.io">Plausible Analytics</a></div>
    since the link leads to plausible.io and not the CE instance

  • "Plausible Analytics: Live Demo"
    since it's unlikely a CE user would add plausible.io site

  • This dashboard is running on self-managed infrastructure, not tested by Plausible Analytics. We cannot vouch for its performance or reliability. For official managed hosting, check out
    since the link leads to plausible.io and not the CE instance

  • <a href="https://plausible.io/" class="border-b text-indigo-700 font-semibold dark:text-indigo-400 border-indigo-700 dark:border-indigo-500">Plausible Analytics</a> is a simple, open source, lightweight (&lt; 1 KB) and privacy-friendly alternative to Google Analytics. We're completely independent and solely funded by our 10,000+ paying subscribers. Read more <a href="https://plausible.io/about" class="border-b font-semibold text-indigo-700 dark:text-indigo-400 border-indigo-700 dark:border-indigo-500">about us.</a>
    since the link leads to plausible.io and the copy talks about Plausible Analytics (it mentions subscribers) and not just the CE version

Tests

  • Automated tests have been added

Changelog

  • This PR does not make a user-facing change

Documentation

  • This change does not need a documentation update

Dark mode

  • The UI has been tested both in dark and light mode

@ruslandoga ruslandoga force-pushed the remove-plausible-analytics-mentions-in-ce branch from fec178e to aaf191f Compare May 23, 2024 06:27
@ruslandoga ruslandoga marked this pull request as ready for review May 23, 2024 06:59
@ruslandoga ruslandoga requested a review from aerosol May 23, 2024 06:59
@@ -47,9 +47,11 @@
<% end %>
<%= @inner_content %>

<p class="text-center text-gray-500 text-xs py-8">
© <%= DateTime.utc_now().year() %> Plausible Analytics. All rights reserved.
</p>
Copy link
Contributor Author

@ruslandoga ruslandoga May 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's how CE looks without it:

Screenshot 2024-05-23 at 14 05 35 Screenshot 2024-05-23 at 14 05 41

</p>
<%= if ee?() do %>
<p class="text-center text-gray-500 text-xs py-8">
© <%= DateTime.utc_now().year() %> Plausible Analytics. All rights reserved.
Copy link
Contributor Author

@ruslandoga ruslandoga May 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

© is kept in the EE build:

Screenshot 2024-05-23 at 14 05 46 Screenshot 2024-05-23 at 14 05 51

@@ -1,6 +1,6 @@
<div class="mt-12 w-full md:max-w-xl md:mx-auto bg-white dark:bg-gray-800 md:shadow-md md:rounded px-8 py-6">
<p class="text-gray-900 text-xl font-black dark:text-gray-100">
Welcome to Plausible Analytics!
Welcome to Plausible!
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2024-05-23 at 14 10 51 Screenshot 2024-05-23 at 14 10 56

Copy link
Member

@aerosol aerosol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

issuer: @issuer_name
)
issuer_name = Plausible.product_name()
NimbleTOTP.otpauth_uri("#{issuer_name}:#{user.email}", user.totp_secret, issuer: issuer_name)
Copy link
Contributor Author

@ruslandoga ruslandoga May 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be OK: https://g.co/gemini/share/3806579d87a0

The v2.1.0-rc users who created TOTP secrets with issuer=Plausible Analytics shouldn't encounter any issues with this change. The new TOTP secrets would be issued by Plausible CE.

@aerosol
Copy link
Member

aerosol commented May 23, 2024

@ruslandoga merge at will!

@aerosol aerosol merged commit 9687fa7 into master May 23, 2024
9 checks passed
@aerosol aerosol deleted the remove-plausible-analytics-mentions-in-ce branch May 23, 2024 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants